package com.breakfast.fun.data.repository;

import com.breakfast.fun.data.Repository;
import com.breakfast.fun.data.entity.mall.Mall;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import rx.Observable;

/**
 * Created by yukai on 16/10/17.
 */

public class ToolRepository extends Repository<Mall.DataBean.GoodsBean> {
    @Override
    public Observable getPageAt(int page) {
        param.put("action", "goods");
        param.put("begin", (page - 1) * 10 + "");
        param.put("end", "10");
        param.put("type", "2");

        return Api.getInstance()
                .service
                .getToolModel(param)
                .compose(RxSchedulers.io_main());
    }
}
